package com.software.sqlite.mapper;

import com.software.sqlite.common.BaseMapper;
import com.software.sqlite.entity.TbMovieCollectRecord;
import com.software.sqlite.entity.TbMovieLikeRecord;
import com.software.sqlite.entity.TbMovieWatchRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbMovieCollectRecordMapper extends BaseMapper<TbMovieCollectRecord> {

    /**
     * 我收藏的列表
     * @param userToken
     * @return
     */
    List<TbMovieCollectRecord> myCollect(@Param("userToken")String userToken);

    /**
     * getMovieCollectRecord
     * @param movieId
     * @param userToken
     * @return
     */
    TbMovieCollectRecord getMovieCollectRecord(@Param("movieId") Integer movieId, @Param("userToken") String userToken);

    /**
     * delete record
     * @param movieId
     * @param userToken
     */
    void delRecord(@Param("movieId") Integer movieId,@Param("userToken") String userToken);

}
